package com.qding.park.manager.app.queue.handle;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.qding.park.common.core.exceptions.BaseException;
import com.qding.park.common.core.exceptions.IExceptionHandle;
import com.qding.park.manager.pojo.queue.QueueMsg;

/**
 * @ClassName InviteTimeOutHandle
 * @Description TODO(车场计费规则同步任务)
 * @author Administrator
 * @Date 2016年9月17日 下午4:04:55
 * @version 1.0.0
 */
@Component("parkRuleSyncHandle")
public class ParkRuleSyncHandle extends AbstractAllHandle {

//	@Autowired
//	private ParkFacade parkFacade;

	@Override
	void actualHandle(QueueMsg msg) throws BaseException {

//		try {
//			parkFacade.parkRuleSync();
//		} catch (Exception e) {
//			exceptionHandle.handle(e);
//		}
	}

	@Override
	boolean failDiscardRollBacK(QueueMsg msg) {
		_log.info("车场计费规则同步任务回滚:" + msg);
		return true;
	}

}
